package com.piece.admin.event;

import com.piece.admin.model.TbSysUser;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 *   系统通知事件监听
 */
@Getter
@Setter
public class SystemPostEvent extends ApplicationEvent {

    /** 注册验证事件 **/
    public final static int ACTION_REGISTER_VALIDATE = 0;

    /** 注册成功事件 **/
    public final static int ACTION_REGISTER_SUCCESS = 1;

    private TbSysUser user;

    private int action = ACTION_REGISTER_SUCCESS;

    public SystemPostEvent(Object source) {
        super(source);
    }
}
